﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FoneBuddy.LinqModel.Data;

namespace FoneBuddy.LinqModel
{
    public partial class Country
    {
        #region Variable Declaration
        private IDataRepository _dataObject;
        #endregion

        public Country(IDataRepository dataObject)
            : this()
        {
            _dataObject = dataObject;
        }
        public List<Country> GetAllCountry()
        {
           
            return _dataObject.GetAllCountry();
        }
        public void CreateCountry()
        {
            _dataObject.CreateCountry(this);
        }
        public void DeleteCountry()
        {
            _dataObject.DeleteCountry(this);
        }
        public void GetCountryById()
        {
            _dataObject.GetCountryById(this);
        }
        public void UpdateCountry()
        {
            _dataObject.UpdateCountry(this);
        }
        public List<Country> GetCountryByName(string CountryName)
        {
            return _dataObject.GetCountryByName(CountryName);
        }
    }
}
